
package com.be.beadmin.design.repository;

import com.be.beadmin.design.entity.DrawingReview;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
* @author zmy
* @date 2023-09-05
**/
public interface DrawingReviewRepository extends JpaRepository<DrawingReview, String>, JpaSpecificationExecutor<DrawingReview> {

    DrawingReview findDrawingReviewByIdAndDelete(String id, Integer delete);

    DrawingReview findDrawingReviewById(String id);

    int countDrawingReviewByChangeStatusAndDelete(int status, int delete);

    DrawingReview findDrawingReviewByDrawingIdAndDelete(String drawingId, int delete);

}